package com.cqjtu.eecs.controller;


import com.cqjtu.eecs.entity.vo.TrainingGoalVO;
import com.cqjtu.eecs.service.IGraduateRequirementTemplateService;
import com.cqjtu.eecs.service.ITrainingGoalBriefEntityService;
import com.cqjtu.eecs.service.ITrainingGoalTemplateService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author   
 * @since 2022-02-28
 */
@RestController
@RequestMapping("/training-goal-brief-entity")
@Api(tags = "培养目标接口")
public class TrainingGoalBriefEntityController {

    @Autowired
    private ITrainingGoalBriefEntityService trainingGoalBriefEntityService;
    @Autowired
    private ITrainingGoalTemplateService trainingGoalTemplateService;


    //通过专业代码和版本编号获取培养目标
    @ApiOperation("通过专业代码和版本编号获取专业培养目标模板")
    @GetMapping("/getTrainingGoal/{majorCode}/{versionCode}")
    public TrainingGoalVO getTrainingGoalVO(@PathVariable("majorCode")String majorCode, @PathVariable("versionCode")String versionCode){
        return trainingGoalTemplateService.getTrainingGoalVO(majorCode, versionCode);
    }
}
